home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / sgn < prev    next >
Text File  |  2001-02-17  |  323b  |  18 lines

  1. SYNOPSIS
  2.         int sgn (int|float arg)
  3.  
  4. DESCRIPTION
  5.         Return the sign of the argument: -1 if it's < 0, +1 if it's > 0, and
  6.         0 if it is 0.
  7.  
  8. EXAMPLES
  9.         sgn(1)    - returns 1
  10.         sgn(-1.1) - returns -1
  11.         sgn(0)    - returns 0
  12.  
  13. HISTORY
  14.         Introduced in LDMud 3.2.9.
  15.  
  16. SEE ALSO
  17.         abs(E)
  18.